GtkColorChooserWidget: Set accessible names
authorMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jan 2014 04:30:28 +0000 (23:30 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 5 Jan 2014 04:30:28 +0000 (23:30 -0500)
As pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=721053
we should set the accessible name on the color swatch widgets,
not the descriptions.

gtk/gtkcolorchooserwidget.c

index 71bdc89dc06245e3a2492ff4bf55c272f7636f2b..9665490e15c9c306466c63a0dd3c6cdcb41dce37 100644 (file)
@@ -354,8 +354,8 @@ add_palette (GtkColorChooserWidget  *cc,
       atk_obj = gtk_widget_get_accessible (p);
       if (names)
         {
-          atk_object_set_description (atk_obj,
-                                      g_dpgettext2 (GETTEXT_PACKAGE, "Color name", names[i]));
+          atk_object_set_name (atk_obj,
+                               g_dpgettext2 (GETTEXT_PACKAGE, "Color name", names[i]));
         }
       else
         {
@@ -363,7 +363,7 @@ add_palette (GtkColorChooserWidget  *cc,
 
           name = accessible_color_name (&colors[i]);
           text = g_strdup_printf (_("Color: %s"), name);
-          atk_object_set_description (atk_obj, text);
+          atk_object_set_name (atk_obj, text);
           g_free (text);
           g_free (name);
         }